﻿<?xml version="1.0" encoding="utf-8"?>
<xs:schema id="AdminCompanyDataSet" targetNamespace="http://tempuri.org/AdminCompanyDataSet.xsd" xmlns:mstns="http://tempuri.org/AdminCompanyDataSet.xsd" xmlns="http://tempuri.org/AdminCompanyDataSet.xsd" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata" xmlns:msprop="urn:schemas-microsoft-com:xml-msprop" attributeFormDefault="qualified" elementFormDefault="qualified">
  <xs:annotation>
    <xs:appinfo source="urn:schemas-microsoft-com:xml-msdatasource">
      <DataSource DefaultConnectionIndex="1" FunctionsComponentName="QueriesTableAdapter" Modifier="AutoLayout, AnsiClass, Class, Public" SchemaSerializationMode="IncludeSchema" xmlns="urn:schemas-microsoft-com:xml-msdatasource">
        <Connections>
          <Connection AppSettingsObjectName="Web.config" AppSettingsPropertyName="DatabaseConnectionString" ConnectionStringObject="" IsAppSettingsProperty="true" Modifier="Assembly" Name="DatabaseConnectionString (Web.config)" ParameterPrefix="@" PropertyReference="AppConfig.System.Configuration.ConfigurationManager.0.ConnectionStrings.DatabaseConnectionString.ConnectionString" Provider="System.Data.SqlClient" />
          <Connection AppSettingsObjectName="Web.config" AppSettingsPropertyName="DBCS" ConnectionStringObject="" IsAppSettingsProperty="true" Modifier="Assembly" Name="DBCS (Web.config)" ParameterPrefix="@" PropertyReference="AppConfig.System.Configuration.ConfigurationManager.0.ConnectionStrings.DBCS.ConnectionString" Provider="System.Data.SqlClient" />
        </Connections>
        <Tables>
          <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="CompanyNameTableAdapter" GeneratorDataComponentClassName="CompanyNameTableAdapter" Name="CompanyName" UserDataComponentName="CompanyNameTableAdapter">
            <MainSource>
              <DbSource ConnectionRef="DBCS (Web.config)" DbObjectName="dbo.CompanyName" DbObjectType="Table" FillMethodModifier="Public" FillMethodName="Fill" GenerateMethods="Both" GenerateShortCommands="true" GeneratorGetMethodName="GetData" GeneratorSourceName="Fill" GetMethodModifier="Public" GetMethodName="GetData" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="false" UserGetMethodName="GetData" UserSourceName="Fill">
                <DeleteCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>DELETE FROM [dbo].[CompanyName] WHERE (([Id] = @Original_Id))</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_Id" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Id" SourceColumnNullMapping="false" SourceVersion="Original" />
                    </Parameters>
                  </DbCommand>
                </DeleteCommand>
                <InsertCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>INSERT INTO [dbo].[CompanyName] ([IdUser], [Company]) VALUES (@IdUser, @Company)</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IdUser" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="IdUser" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Company" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Company" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </InsertCommand>
                <SelectCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>SELECT Id, IdUser, Company FROM dbo.CompanyName</CommandText>
                    <Parameters />
                  </DbCommand>
                </SelectCommand>
                <UpdateCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>UPDATE [dbo].[CompanyName] SET [IdUser] = @IdUser, [Company] = @Company WHERE (([Id] = @Original_Id))</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IdUser" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="IdUser" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Company" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Company" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_Id" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Id" SourceColumnNullMapping="false" SourceVersion="Original" />
                    </Parameters>
                  </DbCommand>
                </UpdateCommand>
              </DbSource>
            </MainSource>
            <Mappings>
              <Mapping SourceColumn="Id" DataSetColumn="Id" />
              <Mapping SourceColumn="IdUser" DataSetColumn="IdUser" />
              <Mapping SourceColumn="Company" DataSetColumn="Company" />
            </Mappings>
            <Sources>
              <DbSource ConnectionRef="DBCS (Web.config)" DbObjectName="" DbObjectType="Unknown" GenerateShortCommands="true" GeneratorSourceName="InsertCompanyName" Modifier="Public" Name="InsertCompanyName" QueryType="NoData" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetDataBy" UserSourceName="InsertCompanyName">
                <InsertCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="true">
                    <CommandText>INSERT INTO [dbo].[CompanyName] ([IdUser], [Company]) VALUES (@IdUser, @Company)</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="true" AutogeneratedName="IdUser" ColumnName="IdUser" DataSourceName="[C:\USERS\DIVYAPRAKASH VERMA\DOCUMENTS\VISUAL STUDIO 2013\WEBSITES\NEWH\APP_DATA\DATABASE.MDF].dbo.CompanyName" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@IdUser" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="IdUser" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="Company" ColumnName="Company" DataSourceName="[C:\USERS\DIVYAPRAKASH VERMA\DOCUMENTS\VISUAL STUDIO 2013\WEBSITES\NEWH\APP_DATA\DATABASE.MDF].dbo.CompanyName" DataTypeServer="nvarchar(50)" DbType="String" Direction="Input" ParameterName="@Company" Precision="0" ProviderType="NVarChar" Scale="0" Size="50" SourceColumn="Company" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </InsertCommand>
              </DbSource>
              <DbSource ConnectionRef="DBCS (Web.config)" DbObjectType="Unknown" GenerateShortCommands="true" GeneratorSourceName="SelectMaxID" Modifier="Public" Name="SelectMaxID" QueryType="Scalar" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetDataBy1" UserSourceName="SelectMaxID">
                <SelectCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="true">
                    <CommandText>SELECT        MAX(Id)
FROM            CompanyName</CommandText>
                    <Parameters />
                  </DbCommand>
                </SelectCommand>
              </DbSource>
              <DbSource ConnectionRef="DBCS (Web.config)" DbObjectName="" DbObjectType="Unknown" GenerateShortCommands="true" GeneratorSourceName="UpdateCompany" Modifier="Public" Name="UpdateCompany" QueryType="NoData" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetDataBy2" UserSourceName="UpdateCompany">
                <UpdateCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="true">
                    <CommandText>UPDATE       CompanyName
SET                IdUser = @IdUser, Company = @Company
WHERE        (Id = @Original_Id)</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="true" AutogeneratedName="IdUser" ColumnName="IdUser" DataSourceName="[C:\USERS\DIVYAPRAKASH VERMA\DOCUMENTS\VISUAL STUDIO 2013\WEBSITES\NEWH\APP_DATA\DATABASE.MDF].dbo.CompanyName" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@IdUser" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="IdUser" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="Company" ColumnName="Company" DataSourceName="[C:\USERS\DIVYAPRAKASH VERMA\DOCUMENTS\VISUAL STUDIO 2013\WEBSITES\NEWH\APP_DATA\DATABASE.MDF].dbo.CompanyName" DataTypeServer="nvarchar(50)" DbType="String" Direction="Input" ParameterName="@Company" Precision="0" ProviderType="NVarChar" Scale="0" Size="50" SourceColumn="Company" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="Original_Id" ColumnName="Id" DataSourceName="[C:\USERS\DIVYAPRAKASH VERMA\DOCUMENTS\VISUAL STUDIO 2013\WEBSITES\NEWH\APP_DATA\DATABASE.MDF].dbo.CompanyName" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@Original_Id" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="Id" SourceColumnNullMapping="false" SourceVersion="Original" />
                    </Parameters>
                  </DbCommand>
                </UpdateCommand>
              </DbSource>
            </Sources>
          </TableAdapter>
        </Tables>
        <Sources />
      </DataSource>
    </xs:appinfo>
  </xs:annotation>
  <xs:element name="AdminCompanyDataSet" msdata:IsDataSet="true" msdata:UseCurrentLocale="true" msprop:Generator_DataSetName="AdminCompanyDataSet" msprop:Generator_UserDSName="AdminCompanyDataSet">
    <xs:complexType>
      <xs:choice minOccurs="0" maxOccurs="unbounded">
        <xs:element name="CompanyName" msprop:Generator_TableClassName="CompanyNameDataTable" msprop:Generator_TableVarName="tableCompanyName" msprop:Generator_RowChangedName="CompanyNameRowChanged" msprop:Generator_TablePropName="CompanyName" msprop:Generator_RowDeletingName="CompanyNameRowDeleting" msprop:Generator_RowChangingName="CompanyNameRowChanging" msprop:Generator_RowEvHandlerName="CompanyNameRowChangeEventHandler" msprop:Generator_RowDeletedName="CompanyNameRowDeleted" msprop:Generator_RowClassName="CompanyNameRow" msprop:Generator_UserTableName="CompanyName" msprop:Generator_RowEvArgName="CompanyNameRowChangeEvent">
          <xs:complexType>
            <xs:sequence>
              <xs:element name="Id" msdata:ReadOnly="true" msdata:AutoIncrement="true" msdata:AutoIncrementSeed="-1" msdata:AutoIncrementStep="-1" msprop:Generator_ColumnVarNameInTable="columnId" msprop:Generator_ColumnPropNameInRow="Id" msprop:Generator_ColumnPropNameInTable="IdColumn" msprop:Generator_UserColumnName="Id" type="xs:int" />
              <xs:element name="IdUser" msprop:Generator_ColumnVarNameInTable="columnIdUser" msprop:Generator_ColumnPropNameInRow="IdUser" msprop:Generator_ColumnPropNameInTable="IdUserColumn" msprop:Generator_UserColumnName="IdUser" type="xs:int" minOccurs="0" />
              <xs:element name="Company" msprop:Generator_ColumnVarNameInTable="columnCompany" msprop:Generator_ColumnPropNameInRow="Company" msprop:Generator_ColumnPropNameInTable="CompanyColumn" msprop:Generator_UserColumnName="Company" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="50" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
            </xs:sequence>
          </xs:complexType>
        </xs:element>
      </xs:choice>
    </xs:complexType>
    <xs:unique name="Constraint1" msdata:PrimaryKey="true">
      <xs:selector xpath=".//mstns:CompanyName" />
      <xs:field xpath="mstns:Id" />
    </xs:unique>
  </xs:element>
</xs:schema>